#include <iostream>
using namespace std;
#include "tabtenn.h"

int main() {
  TableTennisPlayer player1("世耀", "黄", true);
  TableTennisPlayer player2("华森", "谢", false);
  RatedPlayer rplayer1(1140, "zangsan", "li", true);
  rplayer1.Name();
  if (rplayer1.HasTable()) {
    cout << "has a table\n";
  } else {
    cout << "hasn's a table\n";
  }
  rplayer1.Name();
  cout << "Rating:" << rplayer1.Rating() << endl;
  RatedPlayer rplayer2(1212, player1);
  rplayer2.Name();
  cout << "Rating:" << rplayer2.Rating() << endl;

  player1.Name();
  if (player1.HasTable()) {

  } else {
    cout << ":hasn's a table\n";
  }
  player2.Name();
  if (player2.HasTable()) {
    cout << ":has a table\n";
  } else {
    cout << ":hasn's a table\n";
  }
  return 0;
}
